session:consoleLog("info","--进入callouting");



local destination_number=session:getVariable("destination_number");--呼出的号码
local  caller_id_name=session:getVariable("sip_from_user");--拨出的坐席名称
local  uuid=session:getVariable("uuid");--会话id


--发起一个callout事件，便于应用保存记录

local event = freeswitch.Event("CUSTOM", "NECO:CALLOUTING");
event:addHeader("Caller-Orig-Caller-ID-Number",destination_number);
event:addHeader("Caller-Callee-ID-Number",caller_id_name);
event:addHeader("Unique-ID",uuid);
event:addHeader("variable_cc_record_filename",recordFile);
event:fire();
